#include<stdio.h>
#include<conio.h>
#include<math.h>
struct so
{
       float so1, so2;
};
void nhap(so s[],int &n) 
{
     printf("\n nhap so thu nhat");
     scanf("%f",&n);
     printf("\n nhap so thu hai");
     scanf("%f",&n);
}
void xuat(so s)
{
     printf("\n so vua nhap la:");
     printf("%d%d",s.so1,s.so2);
}
so tong(so so1,so so2)
{
	so kq;
	kq=so1+so2;
	
	return kq;
}
so hieu(so so1,so so2)
{ 
	so kq;
	kq.tu=a.tu*b.mau-a.mau*b.tu;
    kq.mau=a.mau*b.mau;
    return kq;
}
so tich(so so1,so so2)
{ 
	so kq;
	kq.tu=a.tu*b.tu;
    kq.mau=a.mau*b.mau;
    return kq;
}
so thuong(so so1,so so2)
{ 
	so kq;
	kq.tu=a.tu*b.mau;
    kq.mau=a.mau*b.tu;
    return kq;
}


int main()
{
 so so1;
 so so2;
 nhap(so1);
 xuat(so1);
 nhap(so2);
 xuat(so2);
 
 printf("\n tong 2 so la %d/%d",tong(so1,so2);
 printf("\n hieu 2 so la %d/%d",hieu(so1,so2);
 printf("\n tich 2 so la %d/%d",tich(so1,so2);
 printf("\n thuong 2 so la %d/%d",thuong(so1,so2);
    
    getch();
}
